<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>OpenLayers v8.2.0 API - Class: BaseVectorLayer</title>
    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
        crossorigin="anonymous"></script>
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/fontawesome.min.css"
        crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css"
        href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/brands.css" crossorigin="anonymous">
    <link rel="stylesheet" type="text/css" href="styles/prettify-tomorrow.css">
    <link rel="stylesheet" type="text/css" href="styles/jaguar.css">
    <link rel="stylesheet" type="text/css" href="styles/carbon.css">
    <link rel="stylesheet" type="text/css" href="/theme/ol.css">
    <link rel="stylesheet" type="text/css" href="/theme/site.css">
</head>

<body>
    <header class="navbar navbar-expand-sm navbar-dark mb-3 px-3 py-0 fixed-top" role="navigation">
        <a class="navbar-brand" href="/"><img src="/theme/img/logo-dark.svg" width="70" height="70"
                alt="">&nbsp;OpenLayers</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#olmenu"
            aria-controls="olmenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <!-- menu items that get hidden below 768px width -->
        <nav class="collapse navbar-collapse" id="olmenu">
            <ul class="nav navbar-nav ms-auto">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="docdropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Docs</a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="docdropdown">
                        <a class="dropdown-item" href="/doc/">Docs</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="/doc/quickstart.html"><i
                                class="fa fa-check fa-fw me-2 fa-lg"></i>快速入门</a>
                        <a class="dropdown-item" href="/doc/faq.html"><i
                                class="fa fa-question fa-fw me-2 fa-lg"></i>FAQ</a>
                        <a class="dropdown-item" href="/doc/tutorials/"><i
                                class="fa fa-book fa-fw me-2 fa-lg"></i>Tutorials</a>
                        <div class="dropdown-divider"></div>
                        <a class="dropdown-item" href="https://stackoverflow.com/questions/tagged/openlayers"><i
                                class="fab fa-stack-overflow fa-fw me-2"></i>Ask a Question</a>
                    </div>
                </li>
                <li class="nav-item"><a class="nav-link" href="/en/latest/examples/">Examples</a></li>
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="apidropdown" role="button"
                        data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <i class="fa fa-sitemap me-1"></i>API
                    </a>
                    <div class="dropdown-menu dropdown-menu-end mb-3" aria-labelledby="apidropdown">
                        <a class="dropdown-item" href="/en/latest/apidoc/"><i
                                class="fa fa-sitemap fa-fw me-2 fa-lg"></i>v8.2.0
                            (latest)</a </div>
                </li>
            </ul>
        </nav>
    </header>

    <div class="container-fluid">
        <div id="wrap" class="row">
            <div class="navigation col-md-4 col-lg-3">
                <div class="search-wrapper">
                    <div class="search">
                        <input id="search" type="text" autocomplete="off" class="form-control input-sm"
                            placeholder="Search Documentation">
                    </div>
                </div>
                <div class="navigation-list-wrapper">
                    <ul class="navigation-list search-empty">
                        <li class="item item-class toggle-manual toggle-manual-show"
                            data-longname="module:ol/layer/BaseVector~BaseVectorLayer" data-name="ol/layer/basevector">
                            <span class="title toggle">
                                <span class="fa fa-chevron-right me-2 mt-1"></span>
                                <span><a
                                        href="module-ol_layer_BaseVector-BaseVectorLayer.html">ol​/layer​/BaseVector</a></span>
                            </span>
                            <div class="member-list" data-type="methods">
                                <span class="subtitle">Methods</span>
                                <ul>
                                    <li data-name="changed"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#changed">changed</a>
                                    <li data-name="dispatchevent"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#dispatchEvent">dispatchEvent</a>
                                    <li data-name="get"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#get">get</a>
                                    <li data-name="getattributions"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getAttributions">getAttributions</a>
                                    <li data-name="getextent"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getExtent">getExtent</a>
                                    <li data-name="getfeatures"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getFeatures">getFeatures</a>
                                    <li data-name="getkeys"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getKeys">getKeys</a>
                                    <li data-name="getmaxresolution"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getMaxResolution">getMaxResolution</a>
                                    <li data-name="getmaxzoom"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getMaxZoom">getMaxZoom</a>
                                    <li data-name="getminresolution"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getMinResolution">getMinResolution</a>
                                    <li data-name="getminzoom"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getMinZoom">getMinZoom</a>
                                    <li data-name="getopacity"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getOpacity">getOpacity</a>
                                    <li data-name="getproperties"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getProperties">getProperties</a>
                                    <li data-name="getrevision"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getRevision">getRevision</a>
                                    <li data-name="getsource"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getSource">getSource</a>
                                    <li data-name="getstyle"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getStyle">getStyle</a>
                                    <li data-name="getstylefunction"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getStyleFunction">getStyleFunction</a>
                                    <li data-name="getvisible"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getVisible">getVisible</a>
                                    <li data-name="getzindex"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#getZIndex">getZIndex</a>
                                    <li data-name="isvisible"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#isVisible">isVisible</a>
                                    <li data-name="on"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#on">on</a>
                                    <li data-name="once"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#once">once</a>
                                    <li data-name="set"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#set">set</a>
                                    <li data-name="setextent"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setExtent">setExtent</a>
                                    <li data-name="setmap"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setMap">setMap</a>
                                    <li data-name="setmaxresolution"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setMaxResolution">setMaxResolution</a>
                                    <li data-name="setmaxzoom"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setMaxZoom">setMaxZoom</a>
                                    <li data-name="setminresolution"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setMinResolution">setMinResolution</a>
                                    <li data-name="setminzoom"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setMinZoom">setMinZoom</a>
                                    <li data-name="setopacity"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setOpacity">setOpacity</a>
                                    <li data-name="setproperties"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setProperties">setProperties</a>
                                    <li data-name="setsource"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setSource">setSource</a>
                                    <li data-name="setstyle"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setStyle">setStyle</a>
                                    <li data-name="setvisible"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setVisible">setVisible</a>
                                    <li data-name="setzindex"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#setZIndex">setZIndex</a>
                                    <li data-name="un"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#un">un</a>
                                    <li data-name="unset"><a
                                            href="module-ol_layer_BaseVector-BaseVectorLayer.html#unset">unset</a>
                                </ul>
                            </div>
                            <div class="member-list" data-type="fires">
                                <span class="subtitle">Fires</span>
                                <ul>
                                    <li data-name="change"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:change">change</a>
                                    <li data-name="change:extent">change:extent
                                    <li data-name="change:maxresolution">change:maxResolution
                                    <li data-name="change:maxzoom">change:maxZoom
                                    <li data-name="change:minresolution">change:minResolution
                                    <li data-name="change:minzoom">change:minZoom
                                    <li data-name="change:opacity">change:opacity
                                    <li data-name="change:source">change:source
                                    <li data-name="change:visible">change:visible
                                    <li data-name="change:zindex">change:zIndex
                                    <li data-name="error"><a
                                            href="module-ol_events_Event-BaseEvent.html#event:error">error</a>
                                    <li data-name="postrender"><a
                                            href="module-ol_render_Event-RenderEvent.html#event:postrender">postrender</a>
                                    <li data-name="prerender"><a
                                            href="module-ol_render_Event-RenderEvent.html#event:prerender">prerender</a>
                                    <li data-name="propertychange"><a
                                            href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a>
                                    <li data-name="sourceready">sourceready
                                </ul>
                            </div>
                        <li class="loading">Loading …
                    </ul>
                </div>
            </div>

            <div class="main col-md-8 col-lg-9">
                <h1 class="page-title" data-filename="module-ol_layer_BaseVector-BaseVectorLayer.html">Class:
                    BaseVectorLayer</h1>
                <div id="latest-check" class="alert alert-warning alert-dismissible" role="alert" style="display:none">
                    <button id="latest-dismiss" type="button" class="btn-close" data-bs-dismiss="alert"
                        aria-label="Close"></button>
                    This documentation is for OpenLayers v<span id="package-version">8.2.0</span>. The <a
                        id="latest-link" href="#" class="alert-link">latest</a> is v<span id="latest-version"></span>.
                </div>




                <section class="content">

                    <header>
                        <h2 class="my-3">
                            <span class="ancestors"><a
                                    href="module-ol_layer_BaseVector.html">ol/layer/BaseVector</a>~</span>BaseVectorLayer
                        </h2>
                        <br>



                        <pre
                            class="prettyprint source"><code>import BaseVectorLayer from '<a href="module-ol_layer_BaseVector.html">ol/layer/BaseVector</a>.js';</code></pre>


                        <div class="row p-3 ">
                            <!-- <div id="ad" class="col-lg-5 order-2 align-self-center border rounded bg-light ">
                                <script async type="text/javascript"
                                    src="https://cdn.carbonads.com/carbon.js?serve=CE7DV53U&placement=openlayersorg"
                                    id="_carbonads_js"></script>
                            </div> -->

                            <div class="class-description col-lg-7 align-self-center ps-0">
                                <p>Vector data that is rendered client-side.
                                    Note that any property set in the options is set as a <a
                                        href="module-ol_Object-BaseObject.html"><code>BaseObject</code></a>
                                    property on the layer object; for example, setting <code>title: 'My Title'</code> in
                                    the
                                    options means that <code>title</code> is observable, and has get/set accessors.</p>
                            </div>

                        </div>
                    </header>

                    <article>
                        <div class="container-overview">



                            <dl>

                                <dt class="">

                                    <div class="nameContainer">
                                        <div class="anchor" id="BaseVectorLayer">
                                        </div>
                                        <h4 class="name">
                                            new BaseVectorLayer<span class="signature">(<span
                                                    class="optional">options</span>)</span>



                                        </h4>

                                        <div class="tag-source">
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js">layer/BaseVector.js</a>,
                                            <a
                                                href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js#L90">line
                                                90</a>
                                        </div>

                                    </div>


                                </dt>
                                <dd class="">













                                    <table class="params">
                                        <thead>
                                            <tr>

                                                <th>Name</th>


                                                <th>Type</th>

                                                <th class="last">Description</th>
                                            </tr>
                                        </thead>

                                        <tbody>


                                            <tr class="">

                                                <td class="name"><code>className</code></td>



                                                <td class="type">


                                                    <span class="param-type">string</span>



                                                    (defaults to 'ol-layer')


                                                </td>



                                                <td class="description last">
                                                    <p>设置到图层元素的CSS类名。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>opacity</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 1)


                                                </td>



                                                <td class="description last">

                                                    <p>不透明度（0，1）。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>visible</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to true)


                                                </td>



                                                <td class="description last">
                                                    <p>可见。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>extent</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_extent.html#~Extent">Extent</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>图层渲染的边界范围。图层不会在此范围之外进行渲染。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>zIndex</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>图层渲染的z-index。在渲染时，图层将按Z-index排序，然后按位置排序。当为<code>undefined</code>时,对于添加到地图的图层集合中的图层，假定
                                                        <code>zIndex</code> 为
                                                        0，而对于使<code>layers.setMap()</code>方法的图层，假定zIndex为<code>Infinity</code>。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>minResolution</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>此图层可见的最小分辨率（含）。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>maxResolution</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>此图层将可见的最大分辨率（不包括）。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>minZoom</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>此图层将可见的最小视图缩放级别（不包括）。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>maxZoom</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>此图层可见的最大视图缩放级别（包括）。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>renderOrder</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_render.html#~OrderFunction">OrderFunction</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>渲染顺序。在渲染之前对要素进行排序时要使用的函数。默认情况下，要素按其创建的顺序进行绘制。使用<code>null</code>可避免排序，但会获得未定义的绘制顺序。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>renderBuffer</code></td>



                                                <td class="type">


                                                    <span class="param-type">number</span>



                                                    (defaults to 100)


                                                </td>



                                                <td class="description last">

                                                    <p>当从矢量源获取用于渲染或点击检测的要素时，渲染器使用的视口范围周围的像素缓冲区。建议的值：最大符号、线宽或标签的大小。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>source</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_source_Vector-VectorSource.html">VectorSource</a>
                                                        | <a
                                                            href="module-ol_source_VectorTile-VectorTile.html">VectorTile</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>Source.</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>map</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_Map-Map.html">Map</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>将图层设置为地图上的覆盖层。地图不会在其图层集合中管理此图层，并且图层将渲染在最上层。这对于临时图层很有用。将图层添加到地图并由地图管理的标准方法是使用
                                                        <a
                                                            href="module-ol_Map-Map.html#addLayer"><code>map.addLayer()</code></a>。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>declutter</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>整理图像和文本。整理应用于设置了此属性的所有 Vector 和 VectorTile 图层的所有图像和文本样式。优先级由图层的
                                                        z-index、样式的 <code>zIndex</code> 和要素的渲染顺序定义。更高的 z-index
                                                        表示更高的优先级。在相同的 z-index 内，先渲染的要素具有更高的优先级。</p>
                                                    <p>作为优化，具有相同 <code>className</code> 的图层的整理要素将渲染在这些图层的所有填充和描边样式之上，而不管
                                                        z-index
                                                        如何。要禁用此行为并将整理后的要素与其自己的图层一起配置，请为图层配置除<code>ol-layer</code>之外的<code>className</code>。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>style</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_style_Style.html#~StyleLike">StyleLike</a></span>
                                                    |

                                                    <span class="param-type"><a
                                                            href="module-ol_style_flat.html#~FlatStyleLike">FlatStyleLike</a></span>
                                                    |

                                                    <span class="param-type">null</span>

                                                    | undefined


                                                </td>



                                                <td class="description last">

                                                    <p>图层样式。当设置为<code>null</code>时，仅渲染具有自己样式的要素。如果未设置此属性，请参见默认<a
                                                            href="module-ol_style_Style-Style.html"><code>Style</code></a>。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>background</code></td>



                                                <td class="type">


                                                    <span class="param-type"><a
                                                            href="module-ol_layer_Base.html#~BackgroundColor">BackgroundColor</a></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p>图层的背景颜色。如果未指定，则不会渲染背景。</p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>updateWhileAnimating</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>当设置为<code>true</code>将在动画期间重新创建要素批次。这意味着在动画期间不会显示被裁剪的矢量，但对于大量的矢量数据，此设置会对性能产生影响。当设置为
                                                        <code>false</code> 时，仅在没有活动动画时重新创建批次。
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>updateWhileInteracting</code></td>



                                                <td class="type">


                                                    <span class="param-type">boolean</span>



                                                    (defaults to false)


                                                </td>



                                                <td class="description last">

                                                    <p>当设置为<code>true</code>时，将在交互期间重新创建要素批次。另请参阅
                                                        <code>updateWhileAnimating</code>.
                                                    </p>
                                                </td>
                                            </tr>



                                            <tr class="">

                                                <td class="name"><code>properties</code></td>



                                                <td class="type">


                                                    <span class="param-type">Object.&lt;string, *></span>

                                                    | undefined


                                                </td>



                                                <td class="description last">
                                                    <p> 任意可观察属性。可以使用<code>#get()</code> and <code>#set()</code>访问。 </p>
                                                </td>
                                            </tr>


                                        </tbody>
                                    </table>




                                    <dl class="details">





















                                    </dl>



                                    <h5>Fires:</h5>
                                    <ul>
                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:change">change</a></code>
                                            (<a href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)
                                            -通用更改事件。在修订计数器增加时触发。
                                        </li>

                                        <li class="">
                                            <code>change:extent</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:maxResolution</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:maxZoom</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:minResolution</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:minZoom</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:opacity</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:source</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:visible</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code>change:zIndex</code>

                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>)




                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_events_Event-BaseEvent.html#event:error">error</a></code>
                                            (<a
                                                href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)-通用错误事件。在发生错误时触发。
                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_render_Event-RenderEvent.html#event:postrender">postrender</a></code>

                                            (<a href="module-ol_render_Event-RenderEvent.html">RenderEvent</a>)



                                            -
                                            在图层渲染后触发。

                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_render_Event-RenderEvent.html#event:prerender">prerender</a></code>

                                            (<a href="module-ol_render_Event-RenderEvent.html">RenderEvent</a>)



                                            -
                                            在图层渲染前触发。

                                        </li>

                                        <li class="">
                                            <code><a href="module-ol_Object.ObjectEvent.html#event:propertychange">propertychange</a></code>
                                            (<a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a>) - 当属性发生更改时触发。
                                        </li>

                                        <li class="">
                                            <code>sourceready</code>

                                            (<a href="module-ol_events_Event-BaseEvent.html">BaseEvent</a>)




                                        </li>
                                    </ul>











                                </dd>

                            </dl>

                        </div>


                        <h3 class="subsection-title">Subclasses</h3>
                        <ul>
                            <li><a href="module-ol_layer_Heatmap-Heatmap.html">Heatmap</a>

                            </li>

                            <li><a href="module-ol_layer_VectorImage-VectorImageLayer.html">VectorImageLayer</a>

                            </li>

                            <li><a href="module-ol_layer_VectorTile-VectorTileLayer.html">VectorTileLayer</a>

                            </li>

                            <li><a href="module-ol_layer_Vector-VectorLayer.html">VectorLayer</a>

                            </li>
                        </ul>



                        <h3 class="subsection-title">Extends</h3>

                        <ul>
                            <li><a href="module-ol_layer_Layer-Layer.html">Layer</a></li>
                        </ul>











                        <h3 class="subsection-title">Observable Properties</h3>
                        <dl>

                            <table class="props">
                                <thead>
                                    <tr>
                                        <th>Name</th>
                                        <th>Type</th>
                                        <th>Settable</th>
                                        <th><a href="module-ol_Object.ObjectEvent.html">ObjectEvent</a> type</th>
                                        <th class="last">Description</th>
                                    </tr>
                                </thead>

                                <tbody>


                                    <tr class="">
                                        <td class="name"><code>extent</code></td>
                                        <td class="type">


                                            <span class="param-type"><a
                                                    href="module-ol_extent.html#~Extent">Extent</a></span>
                                            |

                                            <span class="param-type">undefined</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:extent</code></td>
                                        <td class="description last">
                                            <p>图层显示范围</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>maxResolution</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:maxresolution</code></td>
                                        <td class="description last">
                                            <p>图层的最大分辨率。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>maxZoom</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:maxzoom</code></td>
                                        <td class="description last">
                                            <p>图层的最大缩放级别。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>minResolution</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:minresolution</code></td>
                                        <td class="description last">
                                            <p>
                                                图层的最小分辨率。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>minZoom</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:minzoom</code></td>
                                        <td class="description last">
                                            <p>图层的最小缩放级别。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>opacity</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:opacity</code></td>
                                        <td class="description last">
                                            <p>图层的不透明度。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>source</code></td>
                                        <td class="type">


                                            <span class="param-type">SourceType</span>
                                            |

                                            <span class="param-type">null</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:source</code></td>
                                        <td class="description last">
                                            <p>图层的数据源(或如果没有设置则为<code>null</code>)</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>visible</code></td>
                                        <td class="type">


                                            <span class="param-type">boolean</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:visible</code></td>
                                        <td class="description last">
                                            <p>图层的<code>visible</code> 属性的值。</p>
                                        </td>
                                    </tr>


                                    <tr class="">
                                        <td class="name"><code>zIndex</code></td>
                                        <td class="type">


                                            <span class="param-type">number</span>
                                            |

                                            <span class="param-type">undefined</span>



                                        </td>
                                        <td class="setter">yes</td>
                                        <td class="event"><code>change:zindex</code></td>
                                        <td class="description last">
                                            <p>图层的Z-index。</p>
                                        </td>
                                    </tr>

                                </tbody>
                            </table>
                        </dl>






                        <h3 class="subsection-title">Methods</h3>

                        <dl>


                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="changed">
                                    </div>
                                    <h4 class="name">
                                        changed<span class="signature">()</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#changed">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L68">line
                                            68</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>增加修订计数器并派发一个 'change' 事件。</p>
                                </div>











                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="dispatchEvent">
                                    </div>
                                    <h4 class="name">
                                        dispatchEvent<span class="signature">(event)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_events_Target-Target.html#dispatchEvent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js">events/Target.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/events/Target.js#L85">line
                                            85</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>派发一个事件并调用所有监听此类型事件的监听器。事件参数可以是字符串或具有 <code>type</code>属性的对象。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>event</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_events_Event-BaseEvent.html">BaseEvent</a></span>
                                                |

                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">

                                                <p>Event object.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                如果任何人在事件对象上调用 preventDefault，或者如果任何监听器返回 false，则为<code>false</code>。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="get">
                                    </div>
                                    <h4 class="name">
                                        get<span class="signature">(key)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{*}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#get">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L135">line
                                            135</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取一个值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Value.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getAttributions">
                                    </div>
                                    <h4 class="name">
                                        getAttributions<span class="signature">(<span
                                                class="optional">view</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;string>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Layer-Layer.html#getAttributions">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js">layer/Layer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js#L338">line
                                            338</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取给定视图中此图层源的归属。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>view</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_View-View.html">View</a></span>
                                                |

                                                <span class="param-type"><a
                                                        href="module-ol_View.html#~ViewStateLayerStateExtent">ViewStateLayerStateExtent</a></span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>视图或<a
                                                        href="module-ol_Map.html#~FrameState"><code>FrameState</code></a>。仅在图层未添加到地图时需要。
                                                </p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                在给定图层中该层的归属。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getExtent">
                                    </div>
                                    <h4 class="name">
                                        getExtent<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_extent.html#~Extent">Extent</a> | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L207">line
                                            207</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的 <a href="module-ol_extent.html#~Extent"><code>extent</code></a>
                                        ，如果图层无论如何都将可见，则返回<code>undefined</code>。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                图层的范围
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getFeatures">
                                    </div>
                                    <h4 class="name">
                                        getFeatures<span class="signature">(pixel)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Promise&lt;Array&lt;<a
                                                href="module-ol_Feature.html#~FeatureLike">FeatureLike</a>>>}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js">layer/BaseVector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js#L175">line
                                            175</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取视口上给定像素相交的最顶层的要素。返回一个解析为要素数组的promise。如果检测到交点，则数组将包含最顶层的要素；否则，数组将为空。</p>
                                    <p>此方法使用的点击检测算法已针对性能进行优化，但准确度低于<a
                                            href="module-ol_Map-Map.html#getFeaturesAtPixel"><code>map.getFeaturesAtPixel()</code></a>中使用的算法。不考虑文本，并且图标仅由其边界框表示，而不是确切的图像。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>pixel</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_pixel.html#~Pixel">Pixel</a></span>




                                            </td>



                                            <td class="description last">

                                                <p>Pixel.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                通过一系列功能解决的Promise。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getKeys">
                                    </div>
                                    <h4 class="name">
                                        getKeys<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Array.&lt;string>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getKeys">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L148">line
                                            148</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">



                                <div class="description">
                                    <p>获取对象属性名称的列表。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                属性名称列表。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getMaxResolution">
                                    </div>
                                    <h4 class="name">
                                        getMaxResolution<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getMaxResolution">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L220">line
                                            220</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的最大分辨率。如果图层未设置最大分辨率，则返回 Infinity。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                图层的最大分辨率。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getMaxZoom">
                                    </div>
                                    <h4 class="name">
                                        getMaxZoom<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getMaxZoom">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L253">line
                                            253</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的最大缩放级别。如果图层未设置最大缩放，则返回 Infinity。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                图层的最大缩放级别。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getMinResolution">
                                    </div>
                                    <h4 class="name">
                                        getMinResolution<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getMinResolution">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L231">line
                                            231</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的最小分辨率。如果图层未设置最小分辨率，则返回 0。</p>
                                </div>











                                <dl class="details">





















                                </dl>














                                <h5>Returns:</h5>
                                图层的最小分辨率。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getMinZoom">
                                    </div>
                                    <h4 class="name">
                                        getMinZoom<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getMinZoom">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L242">line
                                            242</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的最小缩放级别。如果图层未设置最小缩放，则返回 -Infinity。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                图层的最小缩放级别。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getOpacity">
                                    </div>
                                    <h4 class="name">
                                        getOpacity<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getOpacity">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L263">line
                                            263</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的不透明度（介于 0 和 1 之间）</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The opacity of the layer.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getProperties">
                                    </div>
                                    <h4 class="name">
                                        getProperties<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{Object.&lt;string, *>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#getProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L157">line
                                            157</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取包含所有属性名称和值的对象。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Object.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getRevision">
                                    </div>
                                    <h4 class="name">
                                        getRevision<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#getRevision">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L79">line
                                            79</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取此对象的版本号。每次对象被修改时，其版本号将递增。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Revision.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getSource">
                                    </div>
                                    <h4 class="name">
                                        getSource<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{SourceType | null}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Layer-Layer.html#getSource">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js">layer/Layer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js#L207">line
                                            207</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取图层源。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The layer source (or <code>null</code> if not yet set).
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getStyle">
                                    </div>
                                    <h4 class="name">
                                        getStyle<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_style_Style.html#~StyleLike">StyleLike</a> | null |
                                            undefined}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js">layer/BaseVector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js#L202">line
                                            202</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取要素的样式。这将返回在构造时或通过<code>setStyle</code>方法传递给<code>style</code>选项的任何内容。 </p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Layer style.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="getStyleFunction">
                                    </div>
                                    <h4 class="name">
                                        getStyleFunction<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_style_Style.html#~StyleFunction">StyleFunction</a> |
                                            undefined}</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js">layer/BaseVector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js#L211">line
                                            211</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>获取样式的函数</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                Layer style function.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getVisible">
                                    </div>
                                    <h4 class="name">
                                        getVisible<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getVisible">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L282">line
                                            282</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回此图<code>visible</code> 属性的值。要了解图层在地图上是否可见，请改用<code>isVisible()</code> 。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                图层属性的<code>visible</code>值。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="getZIndex">
                                    </div>
                                    <h4 class="name">
                                        getZIndex<span class="signature">()</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{number | undefined}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#getZIndex">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L293">line
                                            293</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">
                                <div class="description">
                                    <p>返回图层的Z-index,该索引用于在渲染前对图层进行排序。如果图层未被管理，则返回 undefined。</p>
                                </div>











                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                The Z-index of the layer.
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="isVisible">
                                    </div>
                                    <h4 class="name">
                                        isVisible<span class="signature">(<span
                                                class="optional">view</span>)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{boolean}</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Layer-Layer.html#isVisible">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js">layer/Layer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js#L297">line
                                            297</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>图层在地图视图中可见，即在其最小/最大分辨率或缩放和范围之内，未设置为<code>visible: false</code>,
                                        并且未在设置为<code>visible: false</code>的图层组内。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>view</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_View-View.html">View</a></span>
                                                |

                                                <span class="param-type"><a
                                                        href="module-ol_View.html#~ViewStateLayerStateExtent">ViewStateLayerStateExtent</a></span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>视图或<a
                                                        href="module-ol_Map.html#~FrameState"><code>FrameState</code></a>。仅在图层未添加到地图时需要。
                                                </p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                该图层在地图视图中可见
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="on">
                                    </div>
                                    <h4 class="name">
                                        on<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#on">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L152">line
                                            152</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="once">
                                    </div>
                                    <h4 class="name">
                                        once<span class="signature">(type, listener)</span><span
                                            class="fa fa-arrow-circle-right"></span><span
                                            class="type-signature returnType">{<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a> | Array&lt;<a
                                                href="module-ol_events.html#~EventsKey">EventsKey</a>>}</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#once">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L164">line
                                            164</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>仅监听特定类型的事件一次。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>















                                <h5>Returns:</h5>
                                监听器的唯一键。如果将事件类型的数组作为第一个参数调用，返回将是键的数组。
                                <br />




                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="set">
                                    </div>
                                    <h4 class="name">
                                        set<span class="signature">(key, value, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#set">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L215">line
                                            215</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置值。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>value</code></td>



                                            <td class="type">


                                                <span class="param-type">*</span>




                                            </td>



                                            <td class="description last">

                                                <p>Value.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setExtent">
                                    </div>
                                    <h4 class="name">
                                        setExtent<span class="signature">(extent)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setExtent">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L313">line
                                            313</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层可见的范围。如果<code>undefined</code>, 图层将在所有范围内可见。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>extent</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_extent.html#~Extent">Extent</a></span>
                                                |

                                                <span class="param-type">undefined</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的范围。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setMap">
                                    </div>
                                    <h4 class="name">
                                        setMap<span class="signature">(map)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Layer-Layer.html#setMap">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js">layer/Layer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js#L414">line
                                            414</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>将图层设置为在地图上其他图层之上进行渲染。地图将不会在其图层集合中管理此图层。这对于临时图层非常有用。要从地图中删除未受管理的图层，请使用
                                        <code>#setMap(null)</code>。
                                    </p>
                                    <p>要将图层添加到地图并由地图管理，请使用
                                        <a href="module-ol_Map-Map.html#addLayer"><code>addLayer</code></a> 代替。
                                    </p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>map</code></td>



                                            <td class="type">


                                                <span class="param-type"><a href="module-ol_Map-Map.html">Map</a></span>
                                                |

                                                <span class="param-type">null</span>




                                            </td>



                                            <td class="description last">

                                                <p>Map.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setMaxResolution">
                                    </div>
                                    <h4 class="name">
                                        setMaxResolution<span class="signature">(maxResolution)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setMaxResolution">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L323">line
                                            323</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">



                                <div class="description">
                                    <p>设置图层可见的最大分辨率。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>maxResolution</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的最大分辨率。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setMaxZoom">
                                    </div>
                                    <h4 class="name">
                                        setMaxZoom<span class="signature">(maxZoom)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setMaxZoom">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L345">line
                                            345</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层可见的最大缩放级别（排他）。请注意，图层可见性的缩放级别基于视图缩放级别，这可能与瓦片源的缩放级别不同。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>maxZoom</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的最大缩放。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setMinResolution">
                                    </div>
                                    <h4 class="name">
                                        setMinResolution<span class="signature">(minResolution)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setMinResolution">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L333">line
                                            333</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层可见的最小分辨率。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>minResolution</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的最小分辨率。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setMinZoom">
                                    </div>
                                    <h4 class="name">
                                        setMinZoom<span class="signature">(minZoom)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setMinZoom">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L357">line
                                            357</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层可见的最小缩放级别（包含）。请注意，图层可见性的缩放级别基于视图缩放级别，这可能与瓦片源的缩放级别不同。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>minZoom</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的最小缩放。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setOpacity">
                                    </div>
                                    <h4 class="name">
                                        setOpacity<span class="signature">(opacity)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setOpacity">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L367">line
                                            367</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层的透明度，允许的值范围从 0 到 1。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>opacity</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">

                                                <p>The opacity of the layer.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setProperties">
                                    </div>
                                    <h4 class="name">
                                        setProperties<span class="signature">(values, <span
                                                class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#setProperties">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L235">line
                                            235</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置一个键值对的集合。请注意，这将更改任何现有属性并添加新属性（不会删除任何现有属性）。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>values</code></td>



                                            <td class="type">


                                                <span class="param-type">Object.&lt;string, *></span>




                                            </td>



                                            <td class="description last">

                                                <p>Values.</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>是否在不触发事件的情况下进行更新。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setSource">
                                    </div>
                                    <h4 class="name">
                                        setSource<span class="signature">(source)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Layer-Layer.html#setSource">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js">layer/Layer.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Layer.js#L456">line
                                            456</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层源。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>source</code></td>



                                            <td class="type">


                                                <span class="param-type">SourceType</span>
                                                |

                                                <span class="param-type">null</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层源。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer">
                                    <div class="anchor" id="setStyle">
                                    </div>
                                    <h4 class="name">
                                        setStyle<span class="signature">(<span class="optional">style</span>)</span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js">layer/BaseVector.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/BaseVector.js#L271">line
                                            271</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置要素的样式。这可以是一个样式对象、样式对象的数组，或者一个接受要素和分辨率并返回样式对象数组的函数。如果设置为
                                        <code>null</code>,则图层没有样式 (空样式),因此只有具有自己样式的要素才会在该图层中渲染。不带参数调用
                                        <code>setStyle()</code> 可重置为默认样式。有关默认样式的信息，请参阅 <a
                                            href="module-ol_style_Style-Style.html"><code>ol/style/Style module</code></a>。
                                    </p>
                                    <p>如果图层的样式是静态的，您可以使用<a
                                            href="module-ol_style_flat.html#~FlatStyle"><code>扁平的样式(flat style)</code></a>对象字面量，，而不是使用<code>Style</code>
                                        and symbolizer 构造函数 (<code>Fill</code>, <code>Stroke</code>, 等.):</p>
                                    <pre class="prettyprint source lang-js"><code>vectorLayer.setStyle({
  &quot;fill-color&quot;: &quot;yellow&quot;,
  &quot;stroke-color&quot;: &quot;black&quot;,
  &quot;stroke-width&quot;: 4
})</code></pre>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>style</code></td>



                                            <td class="type">


                                                <span class="param-type"><a
                                                        href="module-ol_style_Style.html#~StyleLike">StyleLike</a></span>
                                                |

                                                <span class="param-type"><a
                                                        href="module-ol_style_flat.html#~FlatStyleLike">FlatStyleLike</a></span>
                                                |

                                                <span class="param-type">null</span>

                                                | undefined


                                            </td>



                                            <td class="description last">

                                                <p>Layer style.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setVisible">
                                    </div>
                                    <h4 class="name">
                                        setVisible<span class="signature">(visible)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setVisible">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L378">line
                                            378</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层的可见性 (<code>true</code> or <code>false</code>)。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>visible</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>




                                            </td>



                                            <td class="description last">
                                                <p>图层的可见性。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="setZIndex">
                                    </div>
                                    <h4 class="name">
                                        setZIndex<span class="signature">(zindex)</span>

                                        <span class="inherited"><a
                                                href="module-ol_layer_Base-BaseLayer.html#setZIndex">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js">layer/Base.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/layer/Base.js#L389">line
                                            389</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>设置图层的 Z-index，用于在渲染之前对图层进行排序。默认的 Z-index 是 0。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>zindex</code></td>



                                            <td class="type">


                                                <span class="param-type">number</span>




                                            </td>



                                            <td class="description last">

                                                <p>The z-index of the layer.</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="un">
                                    </div>
                                    <h4 class="name">
                                        un<span class="signature">(type, listener)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Observable-Observable.html#un">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js">Observable.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Observable.js#L173">line
                                            173</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消监听特定类型的事件。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>type</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>
                                                |

                                                <span class="param-type">Array.&lt;string></span>




                                            </td>



                                            <td class="description last">
                                                <p>事件类型或事件类型的数组。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>listener</code></td>



                                            <td class="type">


                                                <span class="param-type">function</span>




                                            </td>



                                            <td class="description last">
                                                <p>侦听器函数。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>




                            <dt class="">

                                <div class="nameContainer inherited">
                                    <div class="anchor" id="unset">
                                    </div>
                                    <h4 class="name">
                                        unset<span class="signature">(key, <span class="optional">silent</span>)</span>

                                        <span class="inherited"><a
                                                href="module-ol_Object-BaseObject.html#unset">inherited</a></span>



                                    </h4>

                                    <div class="tag-source">
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js">Object.js</a>,
                                        <a
                                            href="https://github.com/openlayers/openlayers/blob/v8.2.0/src/ol/Object.js#L259">line
                                            259</a>
                                    </div>

                                </div>


                            </dt>
                            <dd class="">




                                <div class="description">
                                    <p>取消设置属性。</p>
                                </div>










                                <table class="params">
                                    <thead>
                                        <tr>

                                            <th>Name</th>


                                            <th>Type</th>

                                            <th class="last">Description</th>
                                        </tr>
                                    </thead>

                                    <tbody>


                                        <tr class="">

                                            <td class="name"><code>key</code></td>



                                            <td class="type">


                                                <span class="param-type">string</span>




                                            </td>



                                            <td class="description last">
                                                <p>键名称。</p>
                                            </td>
                                        </tr>



                                        <tr class="">

                                            <td class="name"><code>silent</code></td>



                                            <td class="type">


                                                <span class="param-type">boolean</span>

                                                | undefined


                                            </td>



                                            <td class="description last">
                                                <p>在不触发事件的情况下取消设置属性。</p>
                                            </td>
                                        </tr>


                                    </tbody>
                                </table>




                                <dl class="details">





















                                </dl>













                            </dd>

                        </dl>





                    </article>

                </section>




            </div>
        </div>
    </div>
    <script>prettyPrint();</script>
    <script src="scripts/linenumber.js"></script>
    <script src="scripts/main.js"></script>
</body>

</html>